# Nmake macros for building Windows 32-Bit apps

APPVER=4.0

!include <win32.mak>

objs=ws2chat.obj chatdlg.obj chatsock.obj queue.obj
chatcflags=$(cflags) -DCALLBACK_NOTIFICATION

all: ws2chat.exe

# Update the resource if necessary

ws2chat.res: ws2chat.rc ws2chat.h
    $(rc) $(rcflags) $(rcvars) ws2chat.rc

# Update the object file if necessary

.c.obj:
    $(cc) $(cdebug) $(chatcflags) $(cvars) $*.c

# Update the executable file if necessary, and if so, add the resource back in.

ws2chat.exe: $(objs) ws2chat.res
    $(link) $(linkdebug) $(guilflags) -out:ws2chat.exe $(objs) \
	ws2chat.res $(guilibs) ws2_32.lib
